#include"iostream"
using namespace std;
# define N 100
int sushu(int m, int& count) {
	int i;
	for (i = 2; i <= m - 1; i++) {
		if (m % i == 0) {
			break;
		}
	}
	if (i >= m) {
		cout << m << ",";
		count++;
	}
	return count;
}
int main() {
	int i, m, n;
	int count = 1;
	cin >> m >> n;
	for (i = m; i < N; i++) {
		sushu(i, count);
		if (count > n)
			break;
	}
}